tools/blktap2: fix build errors caused by Werror in
authorOlaf Hering <olaf@aepfle.de>
Thu, 10 May 2012 10:19:05 +0000 (11:19 +0100)
committerOlaf Hering <olaf@aepfle.de>
Thu, 10 May 2012 10:19:05 +0000 (11:19 +0100)
commit0e63f12a2c773fcd4c40e7caf2ba68deb0c77acc
tree8f380dcb12827779af9dc515bfd247efe8a1e196
parentd47e6a744e16d47d97033e36f07ddc108500aa8e
tools/blktap2: fix build errors caused by Werror in
vhd_journal_write_entry

-O2 -Wall -Werror triggers these warnings:

libvhd-journal.c: In function 'vhd_journal_write_entry':
libvhd-journal.c:335: warning: statement with no effect

Really return the error from vhd_journal_write() to caller.

v2:
 - simplify the patch by just adding the missing return statement

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Committed-by: Keir Fraser <keir@xen.org>
tools/blktap2/vhd/lib/libvhd-journal.c